<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="#{$smarty.const.ACT}#/admin/Book/book_show" method="post">
	<div class="searchBar">
      <table class="searchContent">
        <tr>
          <td><select class="combox" name="searchKeyword">
              <option value="name">名称</option>
              <option value="description">介绍</option>
            </select>
          </td>
          <td><input type="text" name="searchValue" />
          </td>
          <td> 添加日期：
            <input type="text" class="date" name="bdt" readonly />
            -
            <input type="text" class="date" name="edt" readonly />
          </td>
          <td><ul>
              <li>
                <div class="buttonActive">
                  <div class="buttonContent">
                    <button type="submit">检索</button>
                  </div>
                </div>
              </li>
            </ul></td>
        </tr>
      </table>
	  <div class="subBar"></div>
    </div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="#{$smarty.const.ACT}#/admin/Book/book_add/" target="dialog" width="850" height="450" rel="book_add" title="小说添加"><span>添加</span></a></li>
			<li><a class="delete" href="#{$smarty.const.ACT}#/admin/Book/book_del/" postType="string" title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" ><span>删除</span></a></li>
			<li><a class="edit" href="#{$smarty.const.ACT}#/admin/Book/book_modify/id/{sid_user}/" target="dialog" width="850" height="450" title="小说修改"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="#{$smarty.const.ACT}#/admin/Book/book_modify/id/{sid_user}/" target="dialog" width="850" height="450" title="小说修改"><span>生成TXT</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="#{$smarty.const.ACT}#/admin/Book/book_modify/id/{sid_user}/" target="dialog" width="850" height="450" title="小说修改"><span>清空章节</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="#{$smarty.const.ACT}#/admin/Book/book_modify/id/{sid_user}/" target="dialog" width="850" height="450" title="小说修改"><span>去重章节</span></a></li>
			<li class="line">line</li>
			<li><a class="edit" href="#{$smarty.const.ACT}#/admin/Book/book_modify/id/{sid_user}/" target="dialog" width="850" height="450" title="小说修改"><span>设置完本</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="50">编号</th>
				<th width="120">名称</th>
				<th width="50">分类</th>
				<th width="50">状态</th>
				<th width="200">最新章节</th>
				<th width="120">更新时间</th>
				<th width="120">入库时间</th>
			</tr>
		</thead>
		<tbody>
		#{foreach from=$list key=k item=v}#
			<tr target="sid_user" rel="#{$v.id}#">
				<td><input name="ids" value="#{$v.id}#" type="checkbox"></td>
				<td>#{$v.id}#</td>
				<td><a href="#{$smarty.const.ACT}#/admin/BookChap/book_chap_show/bookid/#{$v.id}#/" rel="book_chap_show" target="navTab" title="#{$v.name}#章节列表">#{$v.name}#</a></td>
				<td>#{$v.typename}#</td>
				<td>#{$over[$v.overs]}#</td>
				<td>#{$v.lastchap.name}#</td>
				<td>#{$v.udt}#</td>
				<td>#{$v.adt}#</td>
			</tr>
		#{/foreach}#
		</tbody>
	</table>
	
	<div class="panelBar">
		<form id="pagerForm" method="post" action="#{$smarty.const.ACT}#/admin/Book/book_show/">
			<input type="hidden" name="pageNum" value="1" />
			<input type="hidden" name="numPerPage" value="#{$numPerPage}#" />
			<input type="hidden" name="orderField" value="${param.orderField}" />
		   <input type="hidden" name="bdt" value="#{$bdt}#" />
		   <input type="hidden" name="edt" value="#{$edt}#" />
		</form>
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20" #{if $numPerPage eq '20'}# selected="selected" #{/if}#>20</option>
                <option value="50" #{if $numPerPage eq '50'}# selected="selected" #{/if}#>50</option>
                <option value="100" #{if $numPerPage eq '100'}# selected="selected" #{/if}#>100</option>
                <option value="200" #{if $numPerPage eq '200'}# selected="selected" #{/if}#>200</option>
                <option value="500" #{if $numPerPage eq '500'}# selected="selected" #{/if}#>500</option>
			</select>
			<span>条，共#{$totalCount}#条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="#{$totalCount}#" numPerPage="#{$numPerPage}#" pageNumShown="10" currentPage="#{$currentPage}#"></div>

	</div>
</div>
